<template>
    <div id="Login">
        登陆：<el-input v-model="username" placeholder="请输入内容"></el-input><br>
        密码：<el-input show-password v-model="password" placeholder="请输入密码"></el-input>
        <el-button type="success" @click="doLogin">登录</el-button>
    </div>
</template>

<script>
    import axios from 'axios'

    export default {
        name: "Login",
        data(){
            return{
                username:'',
                password:''
            }
        },methods:{
            doLogin(){
                axios.post('/doLogin',{
                    params:{
                        username:this.username,
                        password:this.password
                    }
                })
                .then(function (response) {
                    console.log(response)
                })
            }
        }
    }
</script>

<style scoped>

</style>